package jz.joyoung.robot.util;


/**
 * This class is about UI module constants, unified management Interface constants
 * UI层常量类，统一管理界面常量
 */
public final class UIConstants {

    public static final String DEMO_TAG = "doctor_hyc";

    public static final String CONF_ID = "conf_id";
    public static final String CONF_TO_CALL = "conf_to_call";
    public static final String BUNDLE_KEY = "bundle_key";
    public static final String CALL_INFO = "call_info";
    public static final String CHAT_TYPE = "CHAT_TYPE";
    public static final String PERSONAL_CONTACT = "personal_contact";
    public static final String BUNDLE = "bundle";
    public static final String VIDEO_SYSTEM_PATH = "video_system_path";
    public static final String CONST_GROUP = "const_group";
    public static final String MEDIA_RESOURCE = "media_resource";
    public static final String GROUP_MEMBER = "group_member";
    public static final String GROUP_OPERATE_MODE = "group_operate";
    public static final String GROUP_OPERATE_ADD = "group_add_member";
    public static final String GROUP_OPERATE_DELETE = "group_delete";

    public static final String CONTACT_POSITION = "contact_position";

    public static final String IS_VIDEO_CONF = "is_video_conf";
    public static final String IS_DATE_CONF = "is_date_conf";
    public static final String IS_START_SHARE_CONF = "is_start_share_conf";

    /**
     * Obtaining user avatars and info
     */
    public static final int ENTERPRISE_HEAD_SELF = 21;
    public static final int ENTERPRISE_HEAD_SYS = 22;
    public static final int ENTERPRISE_HEAD_DEF = 23;
    public static final int ENTERPRISE_HEAD_NULL = 24;
    public static final int ENTERPRISE_SEARCH_SUCCESS = 0;
    public static final int ENTERPRISE_SEARCH_NULL = 1;
    public static final int ENTERPRISE_SEARCH_FAILED = 2;
    public static final int ENTERPRISE_SELF_TERMINAL = 25;
    public static final int ENTERPRISE_SEARCH_DEPT = 105;

    public static final int SET_SYSTEM_HEAD_PHOTO_CODE = 101;
    public static final int LOAD_ALL_HEAD_ICON = 100;
    public static final int PRO_LOAD_HEADICON = 101;
    public static final int LOAD_SELF_HEADIMAGE = 102;

    /**
     * Avatar Image source
     */
    public static final int SYSTEM_PICTURE = 0;
    public static final int ALBUM_PICTURE = 1;

    /**
     * Online status
     */
    public static final int STATUS_ON_LINE = 0;
    public static final int STATUS_BUSY = 1;
    public static final int STATUS_XA = 2;
    public static final int STATUS_DND = 3;

    /**
     * Im constants
     */
    public static final String IM_CHECK_CONTACT_GROUP_NAME = "check_contact_group_name";
    public static final String IM_RETURN_CONTACT_GROUP_NAME = "return_contact_group_name";
    public static final String IM_RETURN_CONTACT_GROUP_ID = "return_contact_group_id";
    public static final String IM_RETURN_CONTACT_GROUP_ALL = "return_contact_group_all";
    public static final String IM_ALL_CONTACT_NUM = "im_all_contact_num";
    public static final String IM_CONTACT_INFO = "im_contact_info";
    public static final String IM_CHAT_GROUP_INFO = "im_chat_group_info";

    public static final int IM_TEAM_CHECKED = 7;
    public static final int IM_REQUEST_CODE_CONTACT_GROUP = 8;
    public static final int IM_RESULT_CODE_CONTACT_GROUP = 9;
    public static final int IM_CHANGE_INFO_FAILED = 10;
    public static final int IM_CHANGE_INFO = 11;
    public static final int IM_REQUEST_CODE_CHAT_GROUP_CREATE = 12;
    public static final int IM_RESULT_CODE_CHAT_GROUP_CREATE = 13;
    public static final int IM_REQUEST_CODE_CHAT_GROUP_DELETE = 14;
    public static final int IM_RESULT_CODE_CHAT_GROUP_DELETE = 15;
    public static final int REQUEST_EDIT_NAME = 0x033;
    public static final int REQUEST_OPEN_CAMERA = 0x011;
    public static final int REQUEST_GALLERY = 0x022;


    public final static String APPOINT_NURSE_PAY_PARAMS = "AppointNursePayParams";
    public final static String JUMP_TO_CONSULT = "jumpToConsult";


    /**
     * 咨询类型
     * 1：图文咨询
     * 3:云门诊
     * 4:护理咨询
     */
    public final static int DIAGNOSE_TYPE_1 = 1;
    public final static int DIAGNOSE_TYPE_3 = 3;
    public final static int DIAGNOSE_TYPE_4 = 4;

    /**
     * 我的护理 - 护理咨询 - 订单列表状态
     * 0:待支付
     * 1:待接单
     * 2:进行中
     * 3:已结束
     * 4:已评价
     * 5:退款中
     * 6:已退款
     * 10:已取消
     */

    public final static int NURSE_CONSULT_STATE_0 = 0;
    public final static int NURSE_CONSULT_STATE_1 = 1;
    public final static int NURSE_CONSULT_STATE_2 = 2;
    public final static int NURSE_CONSULT_STATE_3 = 3;
    public final static int NURSE_CONSULT_STATE_4 = 4;
    public final static int NURSE_CONSULT_STATE_5 = 5;
    public final static int NURSE_CONSULT_STATE_6 = 6;
    public final static int NURSE_CONSULT_STATE_10 = 10;


    /**
     * 聊天详情订单状态
     * 0:未接单
     * 1:进行中
     * 2:已结束
     * 5:已取消
     */
    public final static int CHAT_STATE_0 = 0;
    public final static int CHAT_STATE_1 = 1;
    public final static int CHAT_STATE_2 = 2;
    public final static int CHAT_STATE_5 = 5;


    /**
     * WebSocket cmd状态码
     * 10  :
     * 100 :  加入会议
     * 101 ： 图文问诊结束
     * 105 ： 已挂断视频
     * 106 ： 账号在其它地方登入
     * 107 ： 处方通过审核
     * 108 ： 医生已接受你的图文咨询
     * 109 ： 医生拒绝图文咨询
     * 110 ： 医生请求结束诊断 撤销处方
     * 112 : 处方状态变更
     * 208 ：护理咨询已被接受
     * 209 ：护理咨询结束
     * 114 ：支付宝医保支付成功
     * 115 ：支付宝医保支付失败
     * 211 : 医技开单
     * 212： 检查单状态变更
     */
    public static final int WEBSOCKET_CMD_10 = 10;
    public static final int WEBSOCKET_CMD_100 = 100;
    public static final int WEBSOCKET_CMD_101 = 101;
    public static final int WEBSOCKET_CMD_105 = 105;
    public static final int WEBSOCKET_CMD_106 = 106;
    public static final int WEBSOCKET_CMD_107 = 107;
    public static final int WEBSOCKET_CMD_108 = 108;
    public static final int WEBSOCKET_CMD_109 = 109;
    public static final int WEBSOCKET_CMD_110 = 110;
    public static final int WEBSOCKET_CMD_112 = 112;
    public static final int WEBSOCKET_CMD_208 = 208;
    public static final int WEBSOCKET_CMD_209 = 209;
    public static final int WEBSOCKET_CMD_114 = 114;
    public static final int WEBSOCKET_CMD_115 = 115;
    public static final int WEBSOCKET_CMD_211 = 211;
    public static final int WEBSOCKET_CMD_212 = 212;


    /**
     * WebSocket command状态码
     * 11 : 接收消息
     * 20 : 离线消息-结束咨询
     */
    public static final int WEBSOCKET_COMMAND_11 = 11;
    public static final int WEBSOCKET_COMMAND_20 = 20;

    /**
     * 拍照
     */
    public static final String FILE_PROVIDER_URI = ContextUtils.context.getApplicationInfo().processName + ".fileprovider";


    /**
     * 就诊页请求数据逻辑 queryType
     * <p>
     * 0：原有请求逻辑
     * 1：用于外部判断需要跳转到哪个Tab页逻辑
     */
    public static final int JIUZHEN_QUERY_TYPE_0 = 0;
    public static final int JIUZHEN_QUERY_TYPE_1 = 1;

    /**
     * 就诊页三个tab位置
     * 0：图文咨询
     * 1：护理咨询
     * 2：云门诊
     */
    public static final int JIUZHEN_TAB_POSITION_0 = 0;
    public static final int JIUZHEN_TAB_POSITION_1 = 1;
    public static final int JIUZHEN_TAB_POSITION_2 = 2;

    /**
     * 进入MyFamilyActivity的标志
     * 1：从MineFragment1和ChangePhoneActivity进入
     * 2：从 选择业务类型页 进入
     */
    public static final String INTO_MyFamilyActivity_FLAG = "type";
    public static final int INTO_MyFamilyActivity_FLAG_1 = 1;
    public static final int INTO_MyFamilyActivity_FLAG_2 = 2;

    /**
     * obj_Doctor : Doctor
     * obj_MyFamilyListResponse : MyFamilyListResponse
     * cannot_select_patient : 是否不能重新选择就诊人
     */
    public static final String OBJ_Doctor = "obj_Doctor";
    public static final String OBJ_MyFamilyListResponse = "obj_MyFamilyListResponse";
    public static final String CANNOT_SELECT_PATIENT = "cannot_select_patient";

    /**
     * 图文咨询选择页选择的类型
     * 1: 咨询
     * 2: 复诊
     */
    public static final String GRAPHIC_TYPE_FLAG = "graphic_type";
    public static final int GRAPHIC_TYPE_1 = 1;
    public static final int GRAPHIC_TYPE_2 = 2;


    /**
     * type
     * 0  图文
     * 1  云
     * 2 云订单
     * 3 药
     * 4 聊天
     * 5 图文订单
     */
    public static final String PayActivity_TYPE_FLAG = "type";
    public static final int PayActivity_TYPE_0 = 0;
    public static final int PayActivity_TYPE_1 = 1;
    public static final int PayActivity_TYPE_2 = 2;
    public static final int PayActivity_TYPE_3 = 3;
    public static final int PayActivity_TYPE_4 = 4;
    public static final int PayActivity_TYPE_5 = 5;


    /**
     * 0 选中预约挂号
     * 1 选中图文问诊
     * 2 选中云门诊
     */
    public static final String DOCTORDETAILACTIVITY_TYPE_FLAG = "type";
    public static final int DOCTORDETAILACTIVITY_TYPE_0 = 0;
    public static final int DOCTORDETAILACTIVITY_TYPE_1 = 1;
    public static final int DOCTORDETAILACTIVITY_TYPE_2 = 2;

}
